package com.xb.loan.admin.service.system.impl;

import com.xb.loan.admin.bean.system.OssOperatorRole;
import com.xb.loan.admin.dao.system.OssOperatorRoleDao;
import com.xb.loan.admin.service.system.OperatorRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Service("operatorRoleService")
public class OperatorRoleServiceImpl implements OperatorRoleService {
    @Autowired
    OssOperatorRoleDao ossOperatorRoleDao;

    public List<OssOperatorRole> queryOperatorRoleByOperatorId(String OperatorId) {
        List<OssOperatorRole> list = ossOperatorRoleDao.queryOperatorRoleByOperatorId(OperatorId);
        return list;
    }

    public List<OssOperatorRole> queryOperatorRoleByLoginName(String loginName) {
        Map<String, String> map = new HashMap<String, String>(2);
        map.put("loginName", loginName);
        List<OssOperatorRole> list = ossOperatorRoleDao.queryOperatorRoleByLoginName(map);
        return list;
    }

}
